package com.koala.learn.beanlearn.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author yantingrui
 * @date 2021/12/30   21:47
 */

@NoArgsConstructor
@Data
public class Person {

    private String name;

    private Integer age;

    private LocalDateTime date;

    //public String getDate() {
    //    return date.toString();
    //}


    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Person(String name, Integer age, LocalDateTime date) {
        this.name = name;
        this.age = age;
        this.date = date;
    }
}
